package com.mqb.demo.service.impl;

import com.mqb.demo.entity.User;
import com.mqb.demo.mapper.UserMapper;
import com.mqb.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    protected UserMapper userMapper;


    @Override
    public User findById(Integer id) {
        return null;
    }

    @Override
    public void test(Integer id) {
        System.out.println(id+"====serviceimpl");
        User user = userMapper.selectByPrimaryKey(id);
        System.out.println(user+"hhhhhhhhhh");
    }
}
